package com.lsl.command_pattern.example.concretecommand;

import com.lsl.command_pattern.example.command.Command;

/**
 * description:帮助命令类：具体命令类
 *
 * @author: liushengli
 * data: 2022/12/1
 */
public class HelpCommand extends Command {
    private HelpHandler helpHandler; //维持对请求接收者的引用

    public HelpCommand() {
        helpHandler = new HelpHandler();
    }

    @Override
    public void execute() {
        helpHandler.display();
    }
}
